package cn.gztang.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

/**
 * @author GaoFeng2017
 * @date 2018/9/9 19:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfoUpdate {

    @Range(min = 1, max = Integer.MAX_VALUE)
    private Integer id;

    @Length(min = 2, max = 20)
    private String username;

    @Range(min = 2, max = 10)
    private Byte type;

    @Length(min = 5, max = 20)
    private String account;

    private String phone;

}
